<!doctype>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="description" content="">
    <meta name="keyword" content="">
    <title>新能源汽车</title>
    <link rel="stylesheet" href="/Public/Home/css/common.css">
    <link rel="stylesheet" href="/Public/Home/css/index.css">
    <link rel="stylesheet" href="/Public/Home/css/L-index.css">

</head>
<body>
<!--引入头部 star-->
	<include file="Public/header" />
<!--end-->
    <div class="cont clearfix">
        <!--引入左边 star-->
	    <include file="Public/center_left" />
        <!--end-->
        <div class="right">
            <div class="carcart">
                <if condition="$list eq null">
                <ul>
                    <volist name="list" id="v">
                        <li class="clearfix">
                            <div>
                                <volist name=":explode(',',$result['imgs'])" id="vx" offset="0" length='1'>
                                    <img src="__CARIMG__/{$vx}.png">
                                </volist>
                            </div>
                            <div>
                                <p>{$v.na}</p>
                                <p>参考价：<span>{$v.carprice}</span><span>万</span></p>
                            </div>
                            <a href="javascript:;" onclick="collect_clear('{$v.collect_id}')">取消收藏</a>
                        </li>
                    </volist>
                </ul>
                <else/>
                    暂无数据
                </if>
            </div>
        </div>
    </div>
    
	<include file="Public/footer" />
</body>
<script src="/Public/Home/js/jquery-1.12.4.min.js"></script>
<script>
    //取消收藏
    function collect_clear(id){
        $.post("{:U('Home/Post/collectClear')}",{
            collect_id:id
        },function(res){
            console.log(res);
        },'json')
    }
</script>
</html>